package cn.lbwfree.day3_24;

import java.util.Scanner;

/**
 * @date:2020年3月24日
 * @author:lbwfree
 * @number:BASIC-14 时间转换
 */
public class Timechange {
	public static void main(String[] args) {
		Scanner inScanner = new Scanner(System.in);
		int num = inScanner.nextInt();
		int hour=0;
		int min=0;
		int second=0;
		second=num%60;
		min=((num-second)/60)%60;
		hour=((num-second-min*60)/3600)%24;
		System.out.println(hour+":"+min+":"+second);
		
		
	}
}
